import {createStore} from "vuex";
import userStore from './modules/userStore'
import createPersistedState from "vuex-persistedstate";
const store=createStore({
    modules:{
        userStore
    },
    plugins:[
        createPersistedState({
            storage:localStorage,
            key:'userStore',
            paths:['userStore']
        })
    ]
})


export default store
